function Person(name, age, height, address) {
  this.name = name
  this.age = age
  this.height = height
  this.address = address
}

Person.prototype.eating = function() {
  console.log(this.name + "在吃东西");
}
Person.prototype.running = function() {
  console.log(this.name + "在跑步");
}

var p1 = new Person("yz", 18, 1.88, "beijing")
var p2 = new Person("ko", 20, 1.98, "halo")

// 会被覆盖
p1.eating()
p2.eating()

